import { service } from './config'

// 获取日记列表
export const API_GetMyDiary = form => {
    return service({
        url: `/diary/list`,
        method: 'get',
        params: form
    });
}


// 保存日记
export const API_AddDiary = form => {
    return service({
        url: `/diary/add`,
        method: 'get',
        params: form
    });
}

// 删除日记
export const API_DeleteDiary = form => {
    return service({
        url: `/diary/delete`,
        method: 'get',
        params: form
    });
}

// 查看日记
export const API_DetailDiary = form => {
    return service({
        url: `/diary/select`,
        method: 'get',
        params: form
    });
}

// 查看日记
export const API_EditDiary = form => {
    return service({
        url: `/diary/update`,
        method: 'get',
        params: form
    });
}